package com.dubbo.snail;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author xueguoping
 * @description: TODO
 * @date 2021/4/28 21:37
 */
public class dubboConsumerMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:META-INF/spring/consumer.xml");
        IUserService userService = (IUserService) context.getBean("userService");
        System.out.println(userService.getNameById("001"));
    }
}
